package cn.wolfcode.shop.util;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class BaseKeyPrefix implements KeyPrefix {

    private int expireSeconds;
    private String prefix;

    @Override
    public String getPrefix() {
        return this.prefix;
    }

    @Override
    public int getExpireSeconds() {
        return this.expireSeconds;
    }
}